<template>
  <div>
    <h2>{{ arr }}</h2>
    <div>
      <button @click="arr.pop()">pop</button>
    </div>
    <div>
      <button @click="arr.push('🤺')">push</button>
    </div>
    <div>
      <button @click="arr.shift()">shift</button>
    </div>
    <div>
      <button @click="arr.unshift('😊')">unshift</button>
    </div>
    <div>
      <button @click="arr.splice(5, 0, '🙁')">splice</button>
    </div>
    <div>
      <button @click="arr.reverse()">reverse</button>
    </div>
    <div>
      <button @click="arr.sort()">sort</button>
    </div>
    <h5>$set</h5>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    };
  },
};
</script>

<style></style>
